package com.easybuilder.blog.service;

import com.easybuilder.blog.dto.BlogFansDTO;
import com.easybuilder.blog.entity.BlogFans;
import com.easybuilder.common.base.entity.Page;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

public interface FansService {

    /** 关注 */
    int attention(Long userId);

    /** 取消关注 */
    int cancelAttention(Long userId);

    /** 粉丝列表分页查询
     * @return*/
    Page<BlogFansDTO> fansPage(int pageNum, int pageSize);

    /** 关注列表分页查询 */
    Page<BlogFans> attentionPage(int pageNum, int pageSize);

    List<BlogFans> selectByExample(Example example);

    /** 统计粉丝数量 */
    Long countFans(Long userId);

    /** 统计关注数量 */
    Long countAttention(Long userId);
}
